import request from '@/utils/request'

// 创建作品
export function createInfoProduction(data) {
  return request({
    url: '/alipay/info-production/create',
    method: 'post',
    data: data
  })
}

// 更新作品
export function updateInfoProduction(data) {
  return request({
    url: '/alipay/info-production/update',
    method: 'put',
    data: data
  })
}

// 删除作品
export function deleteInfoProduction(id) {
  return request({
    url: '/alipay/info-production/delete?id=' + id,
    method: 'delete'
  })
}

// 获得作品
export function getInfoProduction(id) {
  return request({
    url: '/alipay/info-production/get?id=' + id,
    method: 'get'
  })
}

// 获得作品分页
export function getInfoProductionPage(query) {
  return request({
    url: '/alipay/info-production/page',
    method: 'get',
    params: query
  })
}

// 导出作品 Excel
export function exportInfoProductionExcel(query) {
  return request({
    url: '/alipay/info-production/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
